/**
 * 
 */
package systole.persistence.brokersInterface;

import java.util.List;

import systole.domain.clinicalInformation.Sport;
import systole.domain.clinicalInformation.SportPatient;
import systole.domain.persons.Patient;
import systole.exceptions.ExceptionDAO;

/**
 * @author jmj
 *
 */
public interface SportByPatientBroker {

	 /**
     * @param sportPatient 
     * @throws ExceptionDAO
     */
    public void insert(SportPatient sportPatient) throws ExceptionDAO;

    /**
     * @param sportPatient 
     * @throws ExceptionDAO
     */
    public void update(SportPatient sportPatient) throws ExceptionDAO;

    /**
     * @param sportPatient
     * @throws ExceptionDAO
     */
    public void delete(SportPatient sportPatient) throws ExceptionDAO;

    /**
     * @param patient 
     * @return all patient sports
     * @throws ExceptionDAO
     */
    public List<SportPatient> getAllPatientSports(Patient patient) throws ExceptionDAO;

    /**
     *
     * @param sport 
     * @param patient 
     * @return if patient pathology exist
     * @throws ExceptionDAO
     */
    public boolean existSportByPatient(Sport sport, Patient patient) throws ExceptionDAO;

	
}
